package com.itlong.cloud.paymenthub;

import com.itlong.cloud.POJO.DTO.operate.OperateBankCardGetPageDTO;
import com.itlong.cloud.POJO.VO.operate.OperateBankCardVO;
import com.itlong.cloud.utils.page.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * <desc>
 *      运营银行卡管理暴露接口
 * </desc>
 *
 * @createDate 2018/09/20
 */
@FeignClient(name = "payment-hub-service")
public interface IOperateBankCardManageServiceClient {

    /**
     * <desc>
     *      获取银行卡账号详情
     * <desc/>
     *
     * @param bankCardId
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/20
     */
    @PostMapping(path = "/operate/finance/bankCardManage/getCardInfo")
    OperateBankCardVO getCardInfo(@RequestParam("bankCardId") String bankCardId);

    /**
     * <desc>
     *      提交审核
     * </desc>
     *
     * @param bankCardId
     * @param checkStatus
     * @param remark
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/25
     */
    @PostMapping(path = "/operate/finance/bankCardManage/checkSubmit")
    Integer checkSubmit(@RequestParam("bankCardId") String bankCardId,
                        @RequestParam("checkStatus") Integer checkStatus,
                        @RequestParam("remark") String remark,
                        @RequestParam("approver") String approver);


    /**
     * <desc>
     *     获取抄银行卡账户列表
     * </desc>
     *
     * @param pageDTO   参数DTO
     * @return
     * @author Jiaqi.X
     * @createDate 2018/08/15
     */
    @PostMapping(path = "/operate/finance/bankCardManage/getPage")
    public Page<OperateBankCardVO> getPage(@RequestBody OperateBankCardGetPageDTO pageDTO) throws Exception;

}
